package cn.tedu.buycradserver.service;

import cn.tedu.buycradserver.pojo.dto.CategoryAddNewDTO;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import cn.tedu.buycradserver.pojo.vo.CategoryListltemVO;
import java.util.List;


public interface ICategoryServer {
    @Transactional//事务
    void addNew(CategoryAddNewDTO categoryAddNewDTO);
    @Transactional
    void deleteById(Long id);
    List<CategoryListltemVO> listByParentId(Long parentId);
}
